import request from '@/utils/api.request'

/*
* 获取用户信息
* */
export function getUserinfo(data) {
  return request({
    url: '/api/userInfo',
    method: 'get',
    data
  })
}

/*
* 登录
* */
export function login(data) {
  return request({
    url: '/api/login',
    method: 'get',
    data
  })
}
/*
* 获取支付订单信息接口
* */
export function payOrder(data) {
  return request({
    url: '/api/login',
    method: 'get',
    data
  })
}

/*
* 调用微信weixin-js-sdk
* */
export function wechatConfig(data) {
  return request({
    url: '/api/wechatConfig',
    method: 'get',
    data
  })
}
